package com.platform.modules.chat.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.platform.common.enums.YesOrNoEnum;
import com.platform.common.web.domain.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 群组实体类
 * q3z3
 * </p>
 */
@Data
@TableName("chat_group")
@Accessors(chain = true) // 链式调用
public class ChatGroup extends Model<ChatGroup> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId
    private Long id;
    /**
     * 群名
     */
    private String name;
    /**
     * 公告
     */
    private String notice;
    /**
     * 头像
     */
    private String portrait;
    /**
     * 群主
     */
    private Long master;

    /**
     * 管理员
     */
    private String manage;

    /**
     * 禁止发言
     */
    private YesOrNoEnum prohibit;

    /**
     * 打开二维码加群
     */
    private YesOrNoEnum openCode;

    /**
     * 是否开启添加好友
     */
    private YesOrNoEnum addFriend;
    private YesOrNoEnum white;
    private String whiteIds;
    private YesOrNoEnum total;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 注销0正常null注销
     */
    @TableLogic(value = "0", delval = "1")
    private Integer deleted;
}
